package com.heima.pojo.vo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class VmPageVo {
    private Long id;

    private Integer vmType;

    private String innerCode;

    private Long nodeId;

    private Integer vmStatus;

    private LocalDateTime lastSupplyTime;

    private String cityCode;

    private Integer areaId;

    private Long createUserId;

    private String createUserName;

    private Integer businessId;

    private Long regionId;

    private Integer ownerId;

    private String ownerName;

    private String clientId;

    private Double longitudes;

    private Double latitude;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private VmTypeVo type;

    private NodeVo node;

    private RegionVo region;

    @Data
    public static class RegionVo {
        private String id;
        private String name;
        private String remark;
        private Integer nodeCount;
        private Object nodeList;
    }

}
